﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XResLua
{
    public static void CreateInstance(string key, XLua.LuaFunction func, XLua.LuaTable target)
    {
        XRes.CreateInstance(key, (go) =>
        {
            func.Call(target, go);
        });
    }

    public static bool ReleaseInstance(GameObject ins)
    {
        return XRes.ReleaseInstance(ins);
    }
}
